package example.pattern.builder;

/**
 * @author Administrator
 *
 */
public abstract class TextBuilder {
	protected StringBuilder sb; 
	
	public void newText(){
		sb = new StringBuilder("");
	}
	
	public abstract void makeHeader(String header);
	
	public abstract void makeContent(String content);
	
	public abstract void makeFooter(String footer);
	
	public String getResult(){
		return sb == null ? null : sb.toString();
	}

}
